package com.colorlight.cloud.complete.entity.po;

import com.colorlight.cloud.complete.entity.enumerate.CurveShape;
import com.colorlight.cloud.gateway.api.message.constraint.basics.object.Trans;
import com.colorlight.iot.proto.complete.entity.CompleteEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class AutoBrightnessParam implements Trans<AutoBrightnessParam, CompleteEntity.AutoBrightnessParam> {

    /**
     * 是否打开自动亮度
     */
    private Boolean auto;

    /**
     * 是否新版亮度
     */
    private Boolean isNewBrightness;

    /**
     * 获取环境亮度失败时的默认亮度
     */
    private Integer sensorErrorDefaultValue;

    /**
     * 曲线格式
     * 5: 折线
     * 6: 凸函数
     * 7: 凹函数
     * 8: 自定义曲线
     */
    private CurveShape save;

    /**
     * 控制点参数
     */
    private ControlPoint controlPoint;

    /**
     * 数据源参数
     */
    private SensorSource sensorSource;

    /**
     * gamma数组
     */
    private List<Integer> noneReverseGammaValues;

    /**
     * 反gamma数组，暂时不用
     */
    private List<Integer> reverseGammaValues;
}

